package com.site.wisdom_construction.service.qualityModule;

import com.site.wisdom_construction.dao.qualityModule.QualityDangerTypeDao;
import com.site.wisdom_construction.entity.qualityModule.QualityDangerType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/13
 * @Description
 */
@Service
public class QualityDangerTypeService implements QualityDangerTypeDao {
    @Autowired
    private QualityDangerTypeDao qualityDangerTypeDao;

    @Override
    public int insertQualityDangerType(Map map) {
        return qualityDangerTypeDao.insertQualityDangerType(map);
    }

    @Override
    public int deleteQualityDangerType(Map map) {
        return qualityDangerTypeDao.deleteQualityDangerType(map);
    }

    @Override
    public int updateQualityDangerType(Map map) {
        return qualityDangerTypeDao.updateQualityDangerType(map);
    }

    @Override
    public List<QualityDangerType> findQualityDangerTypeByPage(Map map) {
        return qualityDangerTypeDao.findQualityDangerTypeByPage(map);
    }

    @Override
    public long Total(Map map) {
        return qualityDangerTypeDao.Total(map);
    }

    @Override
    public List<QualityDangerType> selectQualityDangerType(Map map) {
        return qualityDangerTypeDao.selectQualityDangerType(map);
    }

    @Override
    public QualityDangerType findQualityDangerTypeById(Map map) {
        return qualityDangerTypeDao.findQualityDangerTypeById(map);
    }
}
